export const get = (key:string):Object => {
  let item = window.sessionStorage.getItem(key)
  return item ? JSON.parse(item):null
}

export const set = (key:string, value: Object):void => {
  window.sessionStorage.setItem(key, JSON.stringify(value))
}

export const remove = (key: string):void => {
  window.sessionStorage.removeItem(key)
}